home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 December / PCWorld_2007-12_cd.bin / domacnost a kancelar / autoit / autoit-v3-setup.exe / Examples / Helpfile / FileCopy.au3 < prev    next >
Text File  |  2007-09-08  |  497b  |  12 lines

  1. FileCopy("C:\*.au3", "D:\mydir\*.*")
  2.  
  3. ; Method to copy a folder (with its contents)
  4. DirCreate("C:\new")
  5. FileCopy("C:\old\*.*", "C:\new\")
  6.  
  7. FileCopy("C:\Temp\*.txt", "C:\Temp\TxtFiles\", 8)
  8. ; RIGHT - 'TxtFiles' is now the target directory and the file names are given by the source names
  9.  
  10. FileCopy("C:\Temp\*.txt", "C:\Temp\TxtFiles\", 9) ; Flag = 1 + 8 (overwrite + create target directory structure)
  11. ; Copy the txt-files from source to target and overwrite target files with same name
  12.